/**
 * Created by bai on 2015-10-29.
 */
var CONTROLLER = angular.module('CONTROLLER',[]);
CONTROLLER.controller('childFirst',function($scope,$location,TransmissionData,BACK){
    $scope.items = [{name:'yunyi',service:'酒水'},{name:'张硕',service:"啤酒"},{name:"李四",service:"餐巾纸"}];
    $scope.info = function(item){
      //alert($location.path())  ;
        BACK.backStore($location.path(),'child2');
        console.log(BACK.lastPage)
        TransmissionData.info = item

    }
})
CONTROLLER.controller('childSecond',function($scope,TransmissionData){
    $scope.info = TransmissionData.info;

})